package com.iflytek.uoamp.agent.common.util;

import org.apache.log4j.Logger;

public class LogHelper {
	
	private LogHelper(){
		
	}
	
	public static final String CACHEMONITROE = "cache4monitor";
	public static final String CACHELIB = "cache4lib";
	public static final String INFO = "infofile";
	public static final String ERRDATA = "errdata";
	
	public static void debug(String name,String log) {
		Logger LOGGER = Logger.getLogger(name);
		LOGGER.debug(log);
	}
	
	public static void warn(String name,String log) {
		Logger LOGGER = Logger.getLogger(name);
		LOGGER.warn(log);
	}
	
	public static void info(String name,String log) {
		Logger LOGGER = Logger.getLogger(name);
		LOGGER.info(log);
	}
	
	public static void error(String name,String log) {
		Logger LOGGER = Logger.getLogger(name);
		LOGGER.error(log);
	}


}
